<?php
namespace app\index\validate;


use think\Validate;

class Login extends Validate
{
    protected $rule = [
        'email'     =>  'require|email',
        'password'  =>  'require|length:4,25',
        '__token__' =>  'token',
    ];

    protected $message = [
        'email.require'     =>  '邮箱不能为空',
        'email.email'       =>  '邮箱格式错误',
        'password.require'  =>  '密码不能为空',
        'password.length'   =>  '密码长度不符, 4-25个字符',
    ];
}